package com.py.credit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.FastEntrance;

public interface FastEntranceDao {
	/**
	 * 添加用户快捷入口
	 * 
	 * @param resourceId
	 * @param appid
	 * @param userId
	 * @param image
	 * @param sort
	 * @param resourceName
	 * @param subSysName
	 */

	public void insert(@Param(value = "resourceId") int resourceId, @Param(value = "appId") String appid,
			@Param(value = "userId") long userId, @Param(value = "image") String image, @Param(value = "sort") int sort,
			@Param(value = "resourceName") String resourceName, @Param(value = "subSysName") String subSysName,
			@Param(value = "url") String url);

	/**
	 * 获取用户所有快捷入口
	 * 
	 * @param userId
	 * @return
	 */

	public List<FastEntrance> selectList(@Param(value = "userId") long userId);

	/**
	 * @param userId
	 * @param ids
	 */
	public void deleteFastEntrances(@Param(value = "userId") long userId);
}
